package com.test.controller;


import com.test.service.UserServiceIml;

import com.test.ykh.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-11-17
 * Time: 23:45
 */
@Controller
public class UserController {

    @Autowired
    UserServiceIml servicel;

    @Autowired
    UserServiceIml service;

    //@Autowired
    //User user;
    public User getUser(){
        System.out.println(service.getUser().toString());
        return servicel.getUser();
       // return user;
    }
}
